package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {

    //查询互动数据
    List<Comment> findComments(Integer page, Integer pagesize,
                               String movementId, int commentType);

    //保存互动数据
    Integer save(Comment comment1);

    //判断是否存在
    Boolean hasComment(String movementId, Long userId, Integer commentType);

    //删除互动数据
    Integer delete(String movementId, Integer commentType, Long userId);
}
